package com.fujica.invoicing.service.impl;

import com.fujica.invoicing.mapper.IPayMethodMapper;
import com.fujica.invoicing.service.IPayMethodService;
import com.fujica.invoicing.utils.Result;
import com.fujica.invoicing.utils.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName PayMethodServiceImpl
 * @Description TODO
 * @Author admin
 * @Date 2020/8/11 14:09
 * @Version 1.0
 **/
@Service
public class PayMethodServiceImpl implements IPayMethodService {

    @Autowired
    private IPayMethodMapper iPayMethodMapper;

    /**
     * 获取所有的支付方式
     * @return
     */
    @Override
    public Result list() {
        return ResultBody.ok(iPayMethodMapper.selectAll());
    }
}
